<script setup lang="ts">
import { ref } from 'vue'

const title = '示例组件'
const inputText = ref('')
</script>

<template>
  <div class="sample-card">
    <h2>{{ title }}</h2>
    <input v-model="inputText" placeholder="请输入一些文字" />
    <p>你输入的是：{{ inputText || '（尚未输入）' }}</p>
  </div>
  
</template>

<style scoped>
.sample-card {
  margin-top: 24px;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

input {
  padding: 8px 10px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  outline: none;
}
</style>




